package com.david.func_test

import androidx.lifecycle.DefaultLifecycleObserver
import androidx.lifecycle.LifecycleOwner
import com.david.core.utils.logi

class LifecycleObserverTest:DefaultLifecycleObserver {
    override fun onCreate(owner: LifecycleOwner) {
        super.onCreate(owner)
        "LifecycleObserverTest onCreate".logi("lifecycle")
    }

    override fun onStart(owner: LifecycleOwner) {
        super.onStart(owner)
        "LifecycleObserverTest onStart".logi("lifecycle")

    }

    override fun onResume(owner: LifecycleOwner) {
        super.onResume(owner)
        "LifecycleObserverTest onResume".logi("lifecycle")

    }

    override fun onPause(owner: LifecycleOwner) {
        super.onPause(owner)
        "LifecycleObserverTest onPause".logi("lifecycle")

    }

    override fun onStop(owner: LifecycleOwner) {
        super.onStop(owner)
        "LifecycleObserverTest onStop".logi("lifecycle")

    }

    override fun onDestroy(owner: LifecycleOwner) {
        super.onDestroy(owner)
        "LifecycleObserverTest onDestroy".logi("lifecycle")

    }
}
